﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/Admin.master" AutoEventWireup="true"
    Inherits="Administrator_AdminCustomerIU" Title="Quản trị Khách Hàng, Đối Tác"
    CodeBehind="AdminCustomerIU.aspx.cs" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <script type="text/javascript">
        $(function () {
            $(function () {
                $('#<%=txtNgayThanhLap.ClientID %>').datepicker({ changeYear: true, changeMonth: true });

            });
        });
    </script>
    <h1>
        <asp:Label ID="lbAdminCustomerIU" runat="server" Text="Thêm mới thông tin Khách Hàng"></asp:Label>
    </h1>
    <div class="accountInfo">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tbody>
                <tr>
                    <td colspan="2">
                        <span class="failureNotification">
                            <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                            <asp:Label ID="lbMessage" runat="server" Text=""></asp:Label>
                        </span>
                        <asp:ValidationSummary ID="CustomerValidationSummary" runat="server" CssClass="failureNotification"
                            ValidationGroup="CustomerGroup" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right; white-space: nowrap; width: 200px">
                        Nhóm khách hàng:
                    </td>
                    <th>
                        <asp:DropDownList ID="ddlNhomKhachHang" runat="server" Height="23px" 
                            Width="322px">
                        </asp:DropDownList>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbTenKhachHangVN" runat="server">Tên Khách Hàng VN:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtTenKhachHangVN" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rvTenKhachHangVN" runat="server" ErrorMessage="Tên khách hàng VN không được để trống."
                            ControlToValidate="txtTenKhachHangVN" Text="*" CssClass="failureNotification"
                            ToolTip="Tên khách hàng VN không được để trông." ValidationGroup="CustomerGroup" />
                    </th>
                </tr>
                <tr class="OtherLanguage">
                    <td align="right">
                        <asp:Label ID="lbTenKhachHangOther" runat="server">Tên Khách Hàng (Other):</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtTenKhachHangOther" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rvTenKhachHangOther" runat="server" ErrorMessage="Tên khách hàng Other không được để trống."
                            ControlToValidate="txtTenKhachHangOther" Text="*" CssClass="failureNotification"
                            ToolTip="Tên khách hàng Other không được để trống." ValidationGroup="CustomerGroup" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbDiaChiVN" runat="server">Địa Chỉ (VN):</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtDiaChiVN" TextMode="MultiLine" Rows="6" runat="server" CssClass="textEntry"
                            Width="320" />
                        <asp:RequiredFieldValidator ID="rvDiaChiVN" runat="server" ControlToValidate="txtDiaChiVN"
                            ValidationGroup="CustomerGroup" CssClass="failureNotification" ErrorMessage="Địa chỉ VN không được để trống."
                            ToolTip="Địa chỉ VN không được để trống." Text="*" />
                    </th>
                </tr>
                <tr class="OtherLanguage">
                    <td align="right">
                        <asp:Label ID="lbDiaChiOther" runat="server">Địa Chỉ (Other):</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtDiaChiOther" TextMode="MultiLine" Rows="6" runat="server" CssClass="textEntry"
                            Width="320" />
                        <asp:RequiredFieldValidator ID="rvDiaChiOther" runat="server" ValidationGroup="CustomerGroup"
                            ControlToValidate="txtDiaChiOther" CssClass="failureNotification" ErrorMessage="Địa chỉ Other không được để trống."
                            ToolTip="Địa chỉ Other không được để trống." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lnNgayThanhLap" runat="server">Ngày thành lập:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtNgayThanhLap" runat="server" CssClass="textEntry"></asp:TextBox>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbDienThoai" runat="server">Điện Thoại:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtDienThoai" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbDiDong" runat="server">Di Động:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtDiDong" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbEmail" runat="server">Email:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry" />
                        <asp:RegularExpressionValidator ValidationGroup="CustomerGroup" ID="revEmail" runat="server"
                            ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="Email không đúng"
                            ToolTip="Email không đúng" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbWebsite" runat="server">Website:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtWebsite" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbGhiChuVN" runat="server">Ghi Chú (VN):</asp:Label>
                    </td>
                    <th>
                        <FCKeditorV2:FCKeditor ID="fckGhiChuVN" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px" />
                    </th>
                </tr>
                <tr class="OtherLanguage">
                    <td align="right">
                        <asp:Label ID="lbGhiChuOther" runat="server">Ghi Chú (Other):</asp:Label>
                    </td>
                    <th>
                        <FCKeditorV2:FCKeditor ID="fckGhiChuOther" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbHinhAnhUrl" runat="server">Ảnh đại diện:</asp:Label>
                    </td>
                    <th>
                        <asp:FileUpload ID="fuHinhAnhUrl" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <th>
                        <asp:Image ID="imgHinhAnh" runat="server" BorderWidth="0" Height="150px" Width="150px" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbNumberOfOrder" runat="server">Thứ tự sắp xếp:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtNumberOfOrder" runat="server" CssClass="textEntry" Text="1"></asp:TextBox>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                        <asp:CheckBox ID="ckPublish" runat="server" Checked="true" Text="Hiển thị" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                        <asp:Button ID="btnSave" runat="server" Text="Lưu" ValidationGroup="CustomerGroup"
                            OnClick="btnSave_Click" CssClass="btn_action" />
                        <asp:Button ID="btlApply" runat="server" Text="Áp dụng" ValidationGroup="CustomerGroup"
                            OnClick="btlApply_Click" CssClass="btn_action" />
                        <asp:Button ID="btnBack" runat="server" Text="Quay trở lại danh sách" OnClick="btnBack_Click" CssClass="btn_action" />
                    </th>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
